﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Utils.Helper
{
    public static class StringExtension
    {        /// <summary>
             /// 转换为首字母小写的副本
             /// </summary>
             /// <param name="input"></param>
             /// <returns></returns>
        public static string ToFirstLower(this string input)
        {
            if (!string.IsNullOrEmpty(input))
            {
                if (input.Length > 1)
                {
                    return char.ToLower(input[0]) + input.Substring(1);
                }
                return char.ToLower(input[0]).ToString();
            }
            return null;
        }
    }
}
